package com.cash.loan.modular.cash.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 产品推荐
 * </p>
 *
 * @author yangbo123
 * @since 2018-09-29
 */
@TableName("loan_recommend")
public class LoanRecommend extends Model<LoanRecommend> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Integer id;
    /**
     * 推荐位名称
     */
    private String name;
    /**
     * 栏位，界面上放置的位置
     */
    private Integer field;
    /**
     * 产品关联id
     */
    private Long productId;
    /**
     * 推荐语
     */
    private String recommend;

    @JSONField(serialize = false)
    private Date createTime;

    @JSONField(serialize = false)
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getField() {
        return field;
    }

    public void setField(Integer field) {
        this.field = field;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getRecommend() {
        return recommend;
    }

    public void setRecommend(String recommend) {
        this.recommend = recommend;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "LoanRecommend{" +
        "id=" + id +
        ", name=" + name +
        ", field=" + field +
        ", productId=" + productId +
        ", recommend=" + recommend +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
